NGPF_GUI.m is a the best start point for ordinary applications.